<template>
  <el-card class="box-card">
    <div class="welcome">
      <h1 class="tip">{{ msg }}</h1>
      <!--<h2>Essential Links</h2>-->
      <!--<ul>-->
      <!--<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>-->
      <!--<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>-->
      <!--<li><a href="https://chat.vuejs.org" target="_blank">Community Chat</a></li>-->
      <!--<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>-->
      <!--<br>-->
      <!--<li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li>-->
      <!--</ul>-->
      <!--<h2>Ecosystem</h2>-->
      <!--<ul>-->
      <!--<li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>-->
      <!--<li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li>-->
      <!--<li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li>-->
      <!--<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>-->
      <!--</ul>-->
    </div>
  </el-card>
</template>

<script>


  export default {
    name: 'welcome',
    data() {
      return {
         msg: ''
//        msg:''
      }
    },
    created: function () {
      this.setTitle()
    },

    methods:{
      getTitleType(){
        const {type} = this.$route.query
        if(type){
          localStorage.setItem('titleType',`${type}`)
          return type
        }
        return `${localStorage.getItem('titleType')}`
      },
      setTitle(){
        const titleType = this.getTitleType()
        if(titleType === '1'){
          this.msg = this.$getTextByLangKey("欢迎使用SMT管理系统")
          return
        }
        this.msg = this.$getTextByLangKey("欢迎使用SMT防错料及追溯系统")

      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

  .el-card {
    box-shadow: 0 0;
    border-radius: 0;
    border: none;
    height: 100%;
  }

  h1, h2 {
    font-weight: normal;
    text-align: center;
    font-size: 40px;
  }

  .welcome .tip{
    /*color: red;*/
    /*font-family: "Noto Sans SC";*/
  }

  ul {
    list-style-type: none;
    padding: 0;
  }

  li {
    display: inline-block;
    margin: 0 10px;
  }

  a {
    color: #42b983;
  }
</style>


